# 定义非空字典，包含姓名、年龄、性别的键值对
info = {
    "name": "tom",
    "age": 18,
    "gender": "男"
}
# 遍历获取字典中所有的键
for i in info.keys():
    print(f"字典的键是：{i}")
# 遍历获取字典中所有的值
for i in info.values():
    print(f"字典的值是：{i}")
# 遍历获取字典的键和值
for k, v in info.items():
    print(f"{k} = {v}")